package com.ruoyi.project.er.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.framework.web.domain.Ztree;
import com.ruoyi.project.er.domain.PaeaErPoint;
import com.ruoyi.project.er.model.PaeaErPointModel;
import com.ruoyi.project.oms.paeaAuType.domain.PaeaAuType;

import java.util.List;

/**
 * 风险点定义Service接口
 *
 * @author ruoyi
 * @date 2020-03-13
 */
public interface IPaeaErPointService extends IService<PaeaErPoint>
{
    /**
     * 查询风险点定义
     *
     * @param id 风险点定义ID
     * @return 风险点定义
     */
    public PaeaErPoint selectPaeaErPointById(String id);

    /**
     * 查询风险点定义列表
     *
     * @param paeaErPoint 风险点定义
     * @return 风险点定义集合
     */
    public List<PaeaErPoint> selectPaeaErPointList(PaeaErPoint paeaErPoint);

    /**
     * 新增风险点定义
     *
     * @param paeaErPoint 风险点定义
     * @return 结果
     */
    public int insertPaeaErPoint(PaeaErPoint paeaErPoint);

    /**
     * 修改风险点定义
     *
     * @param paeaErPoint 风险点定义
     * @return 结果
     */
    public int updatePaeaErPoint(PaeaErPoint paeaErPoint);

    /**
     * 批量删除风险点定义
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deletePaeaErPointByIds(String ids);

    /**
     * 删除风险点定义信息
     *
     * @param id 风险点定义ID
     * @return 结果
     */
    public int deletePaeaErPointById(String id);
    /**
     * 查询风险点树
     * @param model 参数模型
     * @return 风险点树
     */
    public List<Ztree> pointTreeData(PaeaErPointModel model);

    public List<PaeaErPoint> selectPaeaErPointByErrId(String errId);
}
